package com.lz.yz.member.enumeration;

public enum AccountType {
    Internal(1), Admin(2);

    private int value;
    AccountType(int value) {
        this.value = value;
    }

    public int value() {
        return this.value;
    }

    public static AccountType getAccountTypeByStatus(int status){
        switch (status){
            case 1 : return AccountType.Internal;
            case 2 : return AccountType.Admin;
        }
        return null;
    }
}
